import request from '@/utils/request'

// 查询短信推送记录列表
export function listSending(query) {
  return request({
    url: '/message/sending/list',
    method: 'get',
    params: query
  })
}

// 查询短信推送记录详细
export function getSending(messageId) {
  return request({
    url: '/message/sending/' + messageId,
    method: 'get'
  })
}

// 新增短信推送记录
export function addSending(data) {
  return request({
    url: '/message/sending',
    method: 'post',
    data: data
  })
}

// 修改短信推送记录
export function updateSending(data) {
  return request({
    url: '/message/sending',
    method: 'put',
    data: data
  })
}

// 删除短信推送记录
export function delSending(messageId) {
  return request({
    url: '/message/sending/' + messageId,
    method: 'delete'
  })
}
